package cn.jwcat.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 物资
 * </p>
 *
 * @author 作者
 * @since 2023-04-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_goods")
public class Goods {

	/**
	 * id
	 */
	@TableId(value = "goods_id", type = IdType.AUTO)
	private Integer goodsId;

	/**
	 * 名称
	 */
	@TableField("goods_name")
	private String goodsName;

	/**
	 * 数量
	 */
	@TableField("number")
	private Integer number;

	/**
	 * 规格
	 */
	@TableField("specification")
	private String specification;

	/**
	 * 图片路径
	 */
	@TableField("picture")
	private String picture;

	/**
	 * 种类id(type表中的外键id)
	 */
	@TableField("type_id")
	private Integer typeId;

	/**
	 * 入库时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 备注
	 */
	@TableField("remark")
	private String remark;


}
